package com.macw.ww_system.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author Macw
 * @since 2020-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CmsResource对象", description="资源表")
public class CmsResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源专区")
    private String resourceRegion;

    @ApiModelProperty(value = "资源名称")
    private String title;

    @ApiModelProperty(value = "资源类型")
    private String type;

    @ApiModelProperty(value = "资源描述")
    private String description;

    @ApiModelProperty(value = "详情")
    private String detail;

    @ApiModelProperty(value = "资源大小")
    private String size;

    @ApiModelProperty(value = "保存路径")
    private String savePath;

    @ApiModelProperty(value = "缩略图")
    private String coverImage;

    @ApiModelProperty(value = "审核状态 0待审批2未通过1通过")
    private String auditState;

    @ApiModelProperty(value = "评分 1-5")
    private Integer score;

    @ApiModelProperty(value = "下载类型 0直接下载 1登录后下载 2关注下载")
    private String downloadType;

    @ApiModelProperty(value = "收藏数")
    private Integer favouriteCount;

    @ApiModelProperty(value = "下载次数")
    private Integer downloadCount;

    @ApiModelProperty(value = "点击数")
    private Integer hit;

    @ApiModelProperty(value = "点赞数")
    private Integer upVote;

    @ApiModelProperty(value = "付费 0免费 1收费")
    private Integer free;

    @ApiModelProperty(value = "付费类型 1 积分 2扫码支付")
    private String payType;

    @ApiModelProperty(value = "花费多少积分")
    private Integer cost;

    @ApiModelProperty(value = "标签")
    private String tagIds;

    @ApiModelProperty(value = "上传人用户ID")
    private String userId;

    @ApiModelProperty(value = "上传人")
    private String userName;

    @ApiModelProperty(value = "上传日期")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "上传者 id")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态 0 正常 1停用")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;


}
